#                   Shortcut Doctor
#                      Version 4.1
#                 Funduc Software, Inc.
# http://www.funduc.com      http://www.searchandreplace.com

# This is a sample Shortcut Doctor script that describes
# the various switches. 

# To run a script, pass it to the program using the form:
#      shtdoc.exe /Fscriptfile.txt /Q
# /Q (optional) tells the program to quit afterwards.

# If the path to your script contains spaces be sure to 
# surround with quotes. Example: 
#      shtdoc.exe /F"d:\test files\script.txt" /Q

# To make your script run without intervention specify 
# Prompt On Replace=0 (see below).

# Scripts can be any name you like.  The name extension does
# not matter.

# The same material here is in the program F1 Hlp.  The F1 
# may be more readable.

# The # character in column 1 is the comment character. 
# These must go in column 1. 

# All script switches must also begin in column 1.

# Scripts are divided into [Action ] sections that are
# numbered sequentially, e.g, [Action01], [Action02],
# [Action03], ....  They can be in any order in the
# script but are processed sequentially by number.

# Scripts can also have an optional [Default] section.
# [Default] is used to specify switches that are to
# apply in all [Action ] that do not have that same
# switch specified.

# A switch specified in an [Action ] always overrides the
# counterpart (if any) from [Default].

# All scripts MUST have at least one [Action ] section.
# For a single action script, DO NOT USE a [Default
# section.  Use [Action1] instead.

# PERFORM A CHECK ONLY VIA SCRIPT?
# =================================
# To perform a check-only, omit the Search_string= and
# Replace_string= switches for that [Action]

# SEARCH-ONLY SCANS
# =================================
# You can also do a scan for a string by specifying a 
# Search_string= spec but leave Replace_string= blank.
# We suggest that you also specify Prompt On Replace=1 
# for such operations. 

# SEARCH ONLY TIP
# ==================================
# Shortcut Doctor does not have 'wild card' search 
# capability. But it is OK to specify a character likely 
# to be found in all .lnk's in order to obtain a listing.
# Examples: Search_string=\ or Search_string=C:\

[Default]
#
# Use this optional [Default] section to specify switches 
# to be applied to all [Action ]'s.

# We suggest that new users omit [Default] entirely and 
# specify all switches within each [Action ].  You can 
# streamline later if you want by making a [Default].

# *** SEARCH PATH ***
# Use Path= to specify the path to operate on.  Do not
# surround paths with spaces with quote characters.
# Scripts also respect the string available in the GUI to
# search all local hard drives. Use
#   Path=Local Hard Drives or (German interface) 
#   Path=Lokale Festplatten
Path=c:\winnt

# *** FILE MASK ***
# The default is Mask=*.lnk;*.url
# More masks are possible.  Use the ~ character to exclude.
# For example:
# .lnk;*.url;~\utilities\*    Skip C:\utilities 
# *.lnk;*.url;~\utilities\*\  As above but also skip subdirs 
#                               under C:\utilities
# *.lnk;~\*\utilities\*\      Skip any subdir named utilities 
#                               & any underneath named utilities. 
#                               No internet shortcuts will 
#                               be processed because *.url is 
#                               not specified
# s*.lnk;~\recycled\          Shortcuts beginning with 's' and 
#                               ignore the recycled bin.
Mask=*.lnk;*.url

# *** IGNORE TARGET PATHS ***
# To skip shortcuts based the path in their "target"
# field, specify one or more paths in the Ignore Drives=
# switch.  Separate multiple path with the pipe character
# |.  For example: Ignore Drives=f:\|d:\work\|q:\path\path2
# Do not use " characters for paths with spaces.

# *** SEARCH / REPLACE STRINGS ***
# Use the switches below to specify the search and
# replace strings.  Do NOT surround strings w/ spaces with
# quotes.  See above for how to perform a search-only scan
# for reporting purposes. 
# When performing replaces, specify Prompt On Replace=1 
# to be prompted before replacements.
# See [Action3] below for a sample of how to search/replace
# multiple strings in a single pass.
Search_string=c:\windows
Replace_string=c:\windows

# *** FIELDS TO SEARCH (REPLACE) ***
# The Search Fields= switch is an optional setting that 
# controls which fields to operate on.  The default if 
# not specified is all fields.
# To select one or more specific fields, take the additive
# sum in the table below for the fields you want and
# specify that for Search Fields=.  For example, to 
# operate on Icon Location and Command line only, specify
# Search Fields=12.
#
# The fields and their values are:
#      Field           Value
#      --------------  -----
#      Start In Dir      1
#      Icon Location     2
#      Target            4
#      Command Line      8
# 
# Search Fields=15

# *** OUTPUT FILE ***
# If Output_File is blank or not set in Program Options
# from the last time the program was run interactively,
# no output file is produced.
# Output_File=c:\tools\sd\results1.txt
 
# *** OUTPUT FILE APPEND MODE ***
# The output file is normally in overwrite mode.  To write
# in append mode, use the Append to Output File=1
# setting.
#  0 = Overwrite
#  1 = Append mode
Append to Output File=0

# *** SUBDIRECTORY SEARCHING ***
# The choices for Search_subdir are 
#  0 = Off
#  1 = On 
# The default is 0.
Search_subdir=1

# *** DISPLAY ALL RESULTS OR JUST THOSE WITH PROBLEMS ***
# When "Show All" is enabled, the results for all files
# will be displayed.  When it is disabled, only the
# results for shortcuts that have problems will be
# listed.  The choices are:
#  0 = Show All is disabled
#  1 = Show All is enabled
Show All=0

# *** VERIFY PATHS BEFORE REPLACEMENTS ***
# The Check before replace= switch determines whether or
# not the program verifies paths in the Target, Start In,
# and Icon paths before allowing a replace in any of
# those fields.  When enabled, if any of one cannot be
# verified, no replace is made for those fields.  When
# Check before replace=0, no verification is attempted.
# The default is to verify.  The choices are:
#  0 = Do not check before replace
#  1 = Check before replace
Check before replace=1

# *** DISPLAY PROGRESS METER ***
# To enable/disable the progress meter, use these settings:
#  0 = No progress meter is displayed.
#  1 = Show progress meter
Show Progress=0

# *** REPLACEMENT PROMPTING ****
# To enable/disable replacement prompts: 
#  0 = No prompting
#  1 = Yes, prompting
Prompt On Replace=1

# *** CHANGE AUTOMATIC NETWORK SHORTCUT RESOLUTION ***
# By default, the program does not change the tracking
# setting for a network shortcut.  You can enable/disable
# automatic resolution with the switches:
# Make Tracking=1
# or
# Make Non Tracking=1
# (Remove appropriate comment character above)

[Action2]
Path=c:\winnt
Search_string=d:\program files\tools\sr
Replace_string=f:\tools\sr
Output_File=c:\tools\sd\results2.txt
Search_subdir=1
Show All=0
Check before replace=1

# The below [Action ] models how to do multiple 
# search/replace strings in a single pass. 
# Separate multiple strings on the two respective 
# lines using the pipe character - |.  The number 
# of strings must balance.  For ex, if you specify 
# 3 search strings there must be 3 replace strings.
# There is no way to literalize the | character so 
# if you need to search/replace for that character, 
# do it in a separate [Action ]. 

[Action3]
Path=c:\winnt
Search_string=c:\Windows|Testing
Replace_string=d:\WindowsNew|TestingOld
Search_subdir=1
Show All=0
Check before replace=1
